package Models;

/**
 * @author Morten
 */
public abstract class Customer
{
	private static int nextId = 100;
	private int id;
	private String address;
	private int zipCode;
	private String city;
	private int phoneNo;
	private boolean activated = true;

	public Customer(String address, int zipCode, String city, int phoneNo)
	{
		this.edit(address, zipCode, city, phoneNo);
		this.id = Customer.nextId;
		Customer.nextId++;
	}

	public void edit(String address, int zipCode, String city, int phoneNo)
	{
		this.setAddress(address);
		this.setZipCode(zipCode);
		this.setCity(city);
		this.setPhoneNo(phoneNo);
	}

	public String getAddress()
	{
		return address;
	}

	public String getCity()
	{
		return city;
	}

	public int getId()
	{
		return id;
	}

	public int getPhoneNo()
	{
		return phoneNo;
	}

	public int getZipCode()
	{
		return zipCode;
	}

	public boolean isActivated()
	{
		return activated;
	}

	public void setActivated(boolean activated)
	{
		this.activated = activated;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public void setCity(String city)
	{
		this.city = city;
	}

	public void setPhoneNo(int phoneNo)
	{
		this.phoneNo = phoneNo;
	}

	public void setZipCode(int zipCode)
	{
		this.zipCode = zipCode;
	}
}